<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://amc.af.mil/portal-el" prefix="portal" %>
<%@ taglib uri="http://amc.af.mil/radtaglibrary" prefix="rad" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html" %>
<html>
<head>
    <title>Edit Model</title>
</head>

<body>

<rad:useBean id="manufacturerViewHelper"/>

<div id="portal-left-bar">
    <jsp:include page="../navigation/navigationMenu.jsp"/>
</div>

<div id="portal-content">
    <div id="editModel">
        <portal:box title="Edit Model" style="width: 800px">

            <html:form action="modelAction.do?method=addModel" method="post">
                <p>
                    <label for="modelName">Model</label>
                    <html:text property="modelName"/>
                </p>

                <p>
                    <label for="manufacturerId">Manufacturer</label>
                    <html:select property="manufacturerId">
                        <html:optionsCollection name="manufacturerViewHelper"
                                                property="all"
                                                filter="false"
                                                label="name"
                                                value="id"/>
                    </html:select>

                </p>

                <p>
                    <label for="processorSpeed">Processor Speed</label>
                    <html:text property="processorSpeed"/>
                </p>

                <p><html:submit value="Edit Model"/></p>
            </html:form>

        </portal:box>
    </div>
</div>

</body>
</html>